import Home from '../views/Home/home.vue'
import Login from '../views/Login/login.vue'
import Register from '../views/Register/register.vue'
import search from '../views/search/index.vue'
import Detail from '../views/Detail/index.vue'
import AddCartSucess from '../views/AddCartSucess/index.vue'
import ShopCart from '../views/ShopCart/index.vue'
//路由配置信息
export default [{
        name: 'detail', // 是当前路由的标识名称
        path: '/detail/:skuId',
        component: Detail,
        meta: { show: true }
    },
    {
        name: 'addcartsuccess', // 是当前路由的标识名称
        path: '/addcartsuccess',
        component: AddCartSucess,
        meta: { show: true }
    },
    {
        name: 'shopcart', // 是当前路由的标识名称
        path: '/shopcart',
        component: ShopCart,
        meta: { show: true }
    },
    {
        path: '/',
        name: 'Home',
        component: Home,
        meta: { show: true }
    },
    {
        path: '/login',
        name: 'Login',
        component: Login,
        meta: { show: false }
    },
    {
        path: '/register',
        name: 'Register',
        component: Register,
        meta: { show: false }
    },
    {
        path: '/search/:keyword?',
        name: 'search',
        component: search,
        meta: { show: true }
    },
]